package io;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class BRDemo {
    public static void main(String[] args) throws Exception{
        FileInputStream fis=new FileInputStream("pw.txt");
        InputStreamReader isr=new InputStreamReader(fis, StandardCharsets.UTF_8);
        BufferedReader br =new BufferedReader(isr);
        String b;
        while((b= br.readLine())!=null){
            System.out.println(b);
        }
        System.out.println("");
        br.close();
    }
}
